import 'package:flutter/material.dart';
import 'package:manual/pages/camera_gallery_page.dart';
import 'package:manual/pages/custom_scrollview.dart';
import 'package:manual/pages/nested_scrollview_page.dart';
import 'package:manual/pages/refresh_list_page.dart'; // 引入改造后的 RefreshListPage
import 'package:manual/pages/demo_page.dart';
import 'package:manual/pages/basic_tabbar.dart';
import 'package:manual/pages/custom_tabbar.dart';
import 'package:manual/pages/layout_page.dart';
import 'package:manual/components/custom_elevate_button.dart';
import 'package:manual/pages/refresh_pull_list.dart';

class RouteButtonList extends StatelessWidget {
  const RouteButtonList({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('First Route'),
      ),
      body: const Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            CustomElevatedButton(
              buttonText: "Basic Demo",
              destination: DemoPage(title: 'Demo Home Page'),
            ),
            CustomElevatedButton(
              buttonText: "Basic Tabbar",
              destination: BasicTabBar(),
            ),
            CustomElevatedButton(
              buttonText: "Custom Tabbar",
              destination: CustomTabBar(),
            ),
            CustomElevatedButton(
              buttonText: "Layout 布局",
              destination: LayoutPage(),
            ),
            CustomElevatedButton(
              buttonText: " Refres List ",
              destination: RefreshListPage(), 
            ),
            CustomElevatedButton(
              buttonText: "Refresh Pull",
              destination: RefreshPullPage(), 
            ),
            CustomElevatedButton(
              buttonText: "Camera Grallery",
              destination: CameraGalleryPage(), 
            ),
            CustomElevatedButton(
              buttonText: "CustomScrollview",
              destination: CustomScrollview(), 
            ),
            CustomElevatedButton(
              buttonText: "nested Scrollview",
              destination: NestedScrollviewPage(), 
            )
          ],
        ),
      ),
    );
  }
}
